VERSION 5.00
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Object = "{C932BA88-4374-101B-A56C-00AA003668DC}#1.1#0"; "msmask32.ocx"
Begin VB.Form frmProduccionXrangosFechas 
   BackColor       =   &H8000000E&
   BorderStyle     =   5  'Sizable ToolWindow
   ClientHeight    =   1752
   ClientLeft      =   48
   ClientTop       =   312
   ClientWidth     =   6564
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1752
   ScaleWidth      =   6564
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  'CenterScreen
   Begin MSMask.MaskEdBox mskHasta 
      Height          =   252
      Left            =   5280
      TabIndex        =   2
      Top             =   480
      Width           =   1092
      _ExtentX        =   1926
      _ExtentY        =   445
      _Version        =   393216
      MaxLength       =   10
      Mask            =   "##/##/####"
      PromptChar      =   "_"
   End
   Begin MSMask.MaskEdBox mskDesde 
      Height          =   252
      Left            =   3960
      TabIndex        =   1
      Top             =   480
      Width           =   1092
      _ExtentX        =   1926
      _ExtentY        =   445
      _Version        =   393216
      MaxLength       =   10
      Mask            =   "##/##/####"
      PromptChar      =   "_"
   End
   Begin VB.CommandButton cmdImprimir 
      BackColor       =   &H00E0E0E0&
      Caption         =   "Imprimir"
      Height          =   615
      Left            =   4680
      Picture         =   "frmProduccionXrangosFechas.frx":0000
      Style           =   1  'Graphical
      TabIndex        =   3
      Top             =   960
      Width           =   855
   End
   Begin VB.CommandButton CmdCancelar 
      BackColor       =   &H00E0E0E0&
      Caption         =   "Salir"
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   6.6
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   615
      Left            =   5640
      Picture         =   "frmProduccionXrangosFechas.frx":030A
      Style           =   1  'Graphical
      TabIndex        =   4
      Top             =   960
      Width           =   735
   End
   Begin MSDataListLib.DataCombo cboAsesor 
      Bindings        =   "frmProduccionXrangosFechas.frx":0894
      Height          =   312
      Left            =   240
      TabIndex        =   0
      Top             =   480
      Width           =   3492
      _ExtentX        =   6160
      _ExtentY        =   508
      _Version        =   393216
      BackColor       =   16777215
      ListField       =   "nombres"
      BoundColumn     =   "codigo_empleado"
      Text            =   ""
      Object.DataMember      =   "Nombres_EmpleadosN"
   End
   Begin VB.Label Label3 
      BackStyle       =   0  'Transparent
      Caption         =   "Hasta"
      Height          =   252
      Left            =   5280
      TabIndex        =   7
      Top             =   240
      Width           =   612
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "Desde"
      Height          =   252
      Left            =   3960
      TabIndex        =   6
      Top             =   240
      Width           =   492
   End
   Begin VB.Label Label2 
      BackStyle       =   0  'Transparent
      Caption         =   "Asesor"
      Height          =   252
      Left            =   240
      TabIndex        =   5
      Top             =   240
      Width           =   1452
   End
End
Attribute VB_Name = "frmProduccionXrangosFechas"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cboAsesor_KeyDown(KeyCode As Integer, Shift As Integer)
HacerTab KeyCode
End Sub

Private Sub CmdCancelar_Click()
        Unload Me
End Sub

Private Sub cmdImprimir_Click()
        If cboAsesor.BoundText = "" Then Exit Sub
        
        If mskDesde.Text = "__/__/____" Or mskHasta.Text = "__/__/____" Then
            MsgBox "Por favor revisar las fechas .. "
            Exit Sub
        End If
        
        RutaReportes = DE.rsGENCParametros.Fields("RUTA_REPORTES")
        MDI.Reporte.StoredProcParam(0) = cboAsesor.BoundText
        MDI.Reporte.StoredProcParam(1) = mskDesde.Text
        MDI.Reporte.StoredProcParam(2) = mskHasta.Text
       Imprimir RutaReportes & "produccionVendedores.rpt", "", "", "", ""
      
End Sub

Private Sub cmdSalir_Click()
    Unload Me
End Sub

Private Sub Form_Load()
Left = Screen.Width / 2 - Width / 2
    Top = (Screen.Height / 2 - Height / 2) - 800
    LimpiarObjetos Me
End Sub

Private Sub mskDesde_KeyDown(KeyCode As Integer, Shift As Integer)
    HacerTab KeyCode
End Sub

Private Sub mskHasta_KeyDown(KeyCode As Integer, Shift As Integer)
HacerTab KeyCode
End Sub
